package com.ohs.dal.model;

public class ScheduleId implements java.io.Serializable {

	private long roomId;
	private int dayId;

	public ScheduleId() {
	}

	public ScheduleId(long roomId, int dayId) {
		this.roomId = roomId;
		this.dayId = dayId;
	}

	public long getRoomId() {
		return this.roomId;
	}

	public void setRoomId(long roomId) {
		this.roomId = roomId;
	}

	public int getDayId() {
		return dayId;
	}

	public void setDayId(int dayId) {
		this.dayId = dayId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ScheduleId))
			return false;
		ScheduleId castOther = (ScheduleId) other;

		return (this.getRoomId() == castOther.getRoomId())
				&& ((this.getDayId() == castOther.getDayId()));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (int) this.getRoomId();
		result = 37 * result + this.getDayId();
		return result;
	}

}
